package com.ruoyi.credential.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户凭证信息对象 kw_user_credential
 * 
 * @author gonianer
 * @date 2023-11-15
 */
public class KwUserCredential extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 凭证类型 */
    @Excel(name = "凭证类型")
    private String accessTarget;

    /** 凭证名称 */
    @Excel(name = "凭证名称")
    private String name;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 凭证信息 */
    @Excel(name = "密码")
    private String secret;

    /** 凭证描述 */
    @Excel(name = "凭证描述")
    private String description;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setAccessTarget(String accessTarget) 
    {
        this.accessTarget = accessTarget;
    }

    public String getAccessTarget() 
    {
        return accessTarget;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSecret(String secret) 
    {
        this.secret = secret;
    }

    public String getSecret() 
    {
        return secret;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("accessTarget", getAccessTarget())
            .append("name", getName())
            .append("username", getUsername())
            .append("secret", getSecret())
            .append("description", getDescription())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
